package endpoint

import (
	"context"

	"github.com/go-kit/kit/endpoint"
	"github.com/sirupsen/logrus"

	"goKit/global"
	"goKit/params/req"
)

func PostInputEndpoint() endpoint.Endpoint {
	return func(ctx context.Context, request interface{}) (response interface{}, err error) {
		in, ok := request.(*req.InputUser)
		if !ok {
			return global.ResponseParam(10100, "参数错误"), nil
		}
		logrus.Info(*in)
		return global.ResponseParam(10101, ""), nil
	}
}
